<template>
  <div>
    <h1>grandson</h1>
    <div>{{car}}</div>
    <teleport to='html' >
        <div>传送门的内容</div>
    </teleport>
  </div>
</template>

<script>
import {inject} from 'vue'
export default {
  name: "Grandson",
  setup() {
      const car=inject('car')
      return {car}
  }
};                                                                                                    
</script>

<style>
</style>